package com.biz.primus.commodity.vo.frontend;

import com.google.common.collect.Lists;
import org.apache.commons.collections.CollectionUtils;

import java.io.Serializable;
import java.util.List;

/**
 * 用户足迹日期商品编码分组Vo
 *
 * @author david-liu
 * @date 2017年01月17日
 * @reviewer
 * @see
 */
public class DateUserFootPrintProductCodeVo implements Serializable {
    private static final long serialVersionUID = -6880615068299910726L;

    /**
     * 日期
     */
    private String date;

    /**
     * 商品编码结合
     */
    private List<String> productCodes;

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public List<String> getProductCodes() {
        return CollectionUtils.isNotEmpty(productCodes) ? productCodes : Lists.<String>newArrayList();
    }

    public void setProductCodes(List<String> productCodes) {
        this.productCodes = productCodes;
    }
}
